package com.nc.delivery_project.client.request;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.LegalPersonService;
import com.nc.delivery_project.shared.proxy.LegalPersonProxy;
import com.nc.delivery_project.shared.servicelocator.LegalPersonServiceLocator;

import java.util.List;

/**
 * Created by DRAGON on 15.02.2015.
 */
@Service(value = LegalPersonService.class, locator = LegalPersonServiceLocator.class)
public interface LegalPersonRequest extends RequestContext {

    Request<Integer> create(LegalPersonProxy legalperson);

    Request<List<LegalPersonProxy>> read();

    Request<LegalPersonProxy> read(int legalpersonId);

    Request<Void> update(LegalPersonProxy legalperson);

    Request<Void> delete(int legalpersonId);
}
